 package com.lj.mcore.entity;


 import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;

 import java.util.ArrayList;
 import java.util.List;


 @Entity
 @Table(name="shopping_album")
 public class Album extends IdEntity
 {
   private String album_name;
   private int album_sequence;
 
   @OneToMany(mappedBy="album", cascade={CascadeType.REMOVE})
   private List<Accessory> photos = new ArrayList();
 
   @OneToOne(fetch= FetchType.LAZY)
   private Accessory album_cover;
   private boolean album_default;
 
   @Lob
   @Column(columnDefinition="LongText")
   private String alblum_info;
 
   @ManyToOne(fetch=FetchType.LAZY)
   private User user;
 
   public String getAlbum_name() { return this.album_name; }
 
   public void setAlbum_name(String album_name)
   {
     this.album_name = album_name;
   }
 
   public List<Accessory> getPhotos() {
     return this.photos;
   }
 
   public void setPhotos(List<Accessory> photos) {
     this.photos = photos;
   }
 
   public String getAlblum_info() {
     return this.alblum_info;
   }
 
   public void setAlblum_info(String alblum_info) {
     this.alblum_info = alblum_info;
   }
 
   public int getAlbum_sequence() {
     return this.album_sequence;
   }
 
   public void setAlbum_sequence(int album_sequence) {
     this.album_sequence = album_sequence;
   }
 
   public User getUser() {
     return this.user;
   }
 
   public void setUser(User user) {
     this.user = user;
   }
 
   public boolean isAlbum_default() {
     return this.album_default;
   }
 
   public void setAlbum_default(boolean album_default) {
     this.album_default = album_default;
   }
 
   public Accessory getAlbum_cover() {
     return this.album_cover;
   }
 
   public void setAlbum_cover(Accessory album_cover) {
     this.album_cover = album_cover;
   }
 }



 
 